package com.wen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wen.entity.ConsumRecord;
import com.wen.mapper.ConsumRecordMapper;
import com.wen.service.ConsumRecordService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author dhh
 * @date 2021/11/22 9:37
 */
@Service
@AllArgsConstructor
public class ConsumRecordServiceImpl extends ServiceImpl<ConsumRecordMapper, ConsumRecord> implements ConsumRecordService {

    private final ConsumRecordMapper consumRecordMapper;

    @Override
    public List<Map<String, Object>> getConsumRecord(Integer memberId, String search) {
        return consumRecordMapper.getConsumRecord(memberId,search);
    }
}
